using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    //;表示继承了BaseUnit这个类或者接口
    /// <summary>
    /// 玩家类 继承角色类  会拥有基础类的特性
    /// </summary>
    //ceshi yong shuju 

    enum PlayStart
    {
        /// <summary>
        /// 战斗
        /// </summary>
        Batter=0,
        /// <summary>
        /// 休息
        /// </summary>
        Idle=1,

    }
    internal class Player:BaseUnit
    {

        public PlayStart NowStart=PlayStart.Idle;


        public Player() { 
               
            //base.Name = name;
            //base.TestString  私有变量无法读取
            ConsoleTtestString();
        }
        /// <summary>
        /// 玩家类的构造函数怒
        /// </summary>
        /// <param name="name"></param>
        /// <param name="maxhp"></param>
        /// <param name="currenthp"></param>
        /// <param name="atk"></param>
        /// <param name="lv"></param>
        /// <param name="start"></param>
        /// 

        //设置=为 给这个参数设置默认值
        public Player(string name, uint maxhp, uint currenthp, int atk, uint lv , PlayStart start=PlayStart.Idle)
        {
            Name = name;
            MaxHP = maxhp;
            CurrentHp = currenthp;
            Attack = atk;
            lever = lv;
            NowStart = start;
        }
        //使用枚举类来进行玩家的战斗休息

    }
}
